package com.example.azheng.rxjavamvpdemo.mvp.model;

import com.example.azheng.rxjavamvpdemo.bean.BaseObjectBean;
import com.example.azheng.rxjavamvpdemo.bean.code.CodeBean;
import com.example.azheng.rxjavamvpdemo.mvp.contract.RegisterContract;
import com.example.azheng.rxjavamvpdemo.net.RetrofitClient;

import java.util.Map;

import io.reactivex.Flowable;

/**
 * 注册
 */
public class RegisterModel implements RegisterContract.Model {
    @Override
    public Flowable<BaseObjectBean<Object>> register(Map map) {
       return RetrofitClient.getInstance().getApi().register(map);
    }

    @Override
    public Flowable<BaseObjectBean<CodeBean>> getCode() {
        return RetrofitClient.getInstance().getApi().getCode();
    }

}
